<?php
/**
 * Created by PhpStorm.
 * User: zlkmu
 * Date: 2017/10/6
 * Time: 14:37
 * 管理牛牛的管理器
 */
    require_once('RoomManager.php');
    require_once('NiuNiuRoom.php');
    class NiuNiuRoomManager extends RoomManager {

        //辅助函数，创建牛牛房间  返回牛牛房间号
        public function createNiuNiuRoom($userUID,$createRequest){
            //先获取房间ID
            $roomID = $this->createRoomID();
            //解析创建房间的请求，创建实际的房间
            $room = new NiuNiuRoom($createRequest);

            $room->setRoomID(123456);

            //将房间记录到列表中
            $this->addRoomToList(123456,$room);
            //将创建人添加到房间里
            $room->addPlayerToList($userUID);

            return 123456;
        }

        //辅助函数，删除牛牛房间
        public function removeNiuNiuRoom($roomRequest){

        }


    }



?>